phase3 for FCM 801 class assignment 3.