Added Function Code

First attempt at filling in function code