building a CRUD class