added alarm class and added the registation class