foreach can also initialize field