Creating a library of functions