add create_resource method