Learning to work with threads