finished 6.6 for cs262 and unit 6 challenge problem