a simple ruby refactoring lab