ok, how would I do it with graphic functions?