A program to use threading