Models

PR for code review 
`class` is a reserved word by rails!