Homework 2 for NYU INFO1-CE9704