Code done by Ray and Chris during Friday Lab time.  Comments adjusted for statement clarification.