Reformated the code according to the indentation scheme