implemented scheduler and storing of tasks and task-results