Creating a function exercise