Practice with scala