I have even compared it to the solution , and they seem quite similar in output. Maybe I am missing something?