create classes for entity Registration (ref: #530)