Added line numbers and fixed an error