Using create_resources() for class call