finished the curry exercise