working on the tasks logic

inital stages of the tasks logic