Updated foreach loop to only show books published after 1950.