another round of implementation of Bezier problem in exercise 11