Project 4 commit 2

First function done