learning how to subclass a thread or queue