Converting test code into a function
Renaming