Created abstract class for entities