add book search function
add a function to get a data from an array of data