Improved code readability and fixed a bug on line 50