Creating Entity baseclass