Code on how to indent

Tabs is not a good idea since it is editor dependent. I have used spaces
so that it is consistent.. Andrei please fix the indentation properly
taking this code as reference