checking in before modifying.  this gets good answers on problems 1 through 5