Some demo code showing calculations in Scala syntax