threads example
threads return value, not tested