goodbye infinity example
refactoring