Improved MyThread utilizing constructor

http://ideone.com/dDr3Du