Defined instance variable and initialize method for entity class