how does the grainfather work