Homework 7 redundant bool removed