code written while learning Ruby