Latest working version

This version adds the first rock to the collection so that it can be
tested against, and corrects some type issues. Takes standard input and
prints to standard output.