class example to use rails