This is sample code using oops with rails framework