finished contactswitch.cpp and h file. ready for testing