new REST class