Added a simple structure of draw and update for curve class.

Write an simple example to see how array will be implemententede