Homework 5 submission

This should be inside the if statement. numRemoved also needs to change.