1.He was thinking of what he needed to buy while he shopped at the grocery store.2.3.4.