A simple program practicing threads