added friedman and linear function generators