scala basics initial commit: functions