basic java graphing calculator