Create a thread by implementing Runnable

http://ideone.com/b8BVcF