Finished lab 4 programming assignment