Create foreach loop to print book array data
Check books after year 1950