Sample Ruby codes