created task.ts to export the Task interface