moving datastoreobject type into separate class