Wrote load function for TaskList object