Added error checking for non-existent file to challenge8