Edited proper indentations for code readability