Added simple model and resource class