Finished assignment; debugging code; added upper bonus.