final hw3 for data sciences