demo for rails class