Added thread examples