Project 4 commit 4

complete through function3