use last class element for method call classes chain
formatting code
refactor: extract methods
update python code not to use camelCase