Completed second gramsToGrams