add program for Quiz2 of machine learning foundation