Add Task

Added implementation for the add task function