started on Homework 3-1 problem (saved as file hw23.java...oopsgit add --all)