assignment 2 helper and solutions