Write code to pass test checking for year outside scope