Tutorial on thread and handler implementation