lab5 as a copy of lab4-bezier