foreach books array passing in arguments from the terminal