Build sample for Scala