First foray into scala