scala: week4 submit 1