third commit
Deleting some unnecesary output..
and simplified an if condition..