Basic threading support, Breaking client code out into an example class