#7: recreated the Entity class and improved abstraction by writing
javadocs