Scala coding & tests...