HW 3 for cs199 Big Data