Clean up and split Part1.scala. Move it to package 'part1'.
Add comments.