mill working principle