Code Formatting

Formatted the code foe better understanding...