Yes, thank you all, boys. I had set the class<< LotteryDraw as a new class definition. Now, I've set the class<<LotteryDrwa inside the LotteryDraw itself and it already works. Thanks. And thanks for the other comments. -- Posted via http://www.ruby-forum.com/.