started writing the code for the lamp