This code emulates a washing machine.

no such method: tip