creating task object