Custom graphing problem