Ruby script showing usage of class methods