test1 function creator of books