implement entity factory skeletton