In-class thread demo