First version of scala refresher exercise