Screenshots and explaination for homework 2