adding task and taskmanager classes