made a light switch program