Factored out bezier sequence into a class.