Added createTask function to TaskList object