created a base clase for drawable objects and derived model and cursor from it