Tried some Scala equivalent statements