Added entity class and its features

Intro to entity class.