My third try to do it right this time I would not use the Thread class