tweaking example, fixing time, adding cores
testing threads
threads