setup entity classes and implemented shopping cart