Move the code to "lib" folder