how can i make a class run as a thread??

Thank you,
Guilherme