Side effect Dollar class

Dollar object ten amount will be changed after calling times method and when times method call again it will cause an error.
Times method should return new dollar object so ten dollar object amount won't change.