bad example of threads