Problem Set 2 for class Recognition System