adding a case class to handle creation of items