OOP, thread examples