code no. 8- switch and motor

interfacing switches(press and release mechanism)