Codes when learn scala