Homework 5 pt. 2 (bugs)