Added new line after print
Added methods to generate graph and to make it consistent