require rails and use superclass