graphing - passing target function aswell
graphing - passing target function aswell