implemented func createEntity in Store