Code prepared for final turn-in