School project: Graphing Calculator in Java