Grass fire burns 40 acres