CRUD example code for task collection and model