Some more work - fitting with two functions