added new lines at the end
comment typos fixed
output