demo from ruby tutorial