Created myLibrary function and encapsulated all functions
tested all console.logs functioned correctly