Parts 1-3 done

Need to refactor to get Square and Rectangle into one class with
different entries to determine which functions to use. Still seems
sloppy either way. But if you can do it in fewer lines, why not.