typo is fixed by modifying the item: command not found to items: command not found in the ::all method. Instead of creating the array of Task objects for each request, I'll create them once when application will be started.