added example where we force a thread to wait for another to finish using the join method