Use classes for the rest views