Bezier Curves Implementation Using State Behavioral Design Pattern