assigment 3

completed functions for peer assessment