implemented scheduled tasks with example