playing with threads in java 8