Corret output upto line 10