Implementation of add and remove methods into TaskList