Add f's and g's