Functional example of subscription and initial part of alarm manager