Completed Assignment

Both functions are finish with comments