encapsulate mouse hook as a class