Formatted the code for better readability