Make a parent RPC class and use it