initial worked group version in Scala