working on a scalaStruct