Deleted empty lines.
Formatted code to make it more readable.
Removed unnecessary code.
Refactored methods to make them more manageable.