Completed code/tested code #2

Test code (line 43)