chnaged to c++
created alarm.cpp and alarm.h