Homework 5 pt. 3 (bugs)