Ruby practice code.