SMS: Quantitative organic analysis via functional groups