add cubic function to be drawn