How to use a process in a subclass