refactored code for readability
refactored code for readability

wolfascu/codegolf,clupascu/codegolf,clupasq/codegolf,clupasq/codegolf,wolfascu/codegolf,wolfascu/codegolf,clupasq/codegolf,wolfascu/codegolf,clupascu/codegolf,clupasq/codegolf,clupascu/codegolf