starting studies about scala's functions