setting up task and scheduledtask models