Depythonized my code and made it look like Ruby