A ruby programming example built using TDD