adding entity class and crud