for machine learning class ex1