Renamed addTask function to addNewTask