Optical machine basics