refactored the models to comply with JPA and real-life examples