add function pass para and copy back from device memory
book.h
include book.h to detect problem