homeworks functions CRUD