Creating entity classes