Implement getTasks()