Value functions and associated graded rings 1