drawing function graphs