How are light and matter similar?