ADDED: abstract thread class

The abstract class simplifies the loading classes.