moving case classes to package object