pulled out shceduledreceiver as external class
organized code for scheduledReceiver