add logic files for Exercise 1, 2 dor the Door Simulation