An optics bench simulator