Initial work toward Hw #2 for Ng's ML course.