A cookie factory uses 1/2 of a barrel of oatmeal in each batch of cookies. The factory used 3 1/2 barrels of oatmeal yesterday. How many batches of cookies did the factory make?