Project 4 commit 5

complete through function 4