went with hash instead of class