scala hw3