Pset 8 of CS50x