Initial commit, added bodies of the two functions