basic structure of CRUD using ruby