Implemented cubert procedure. Exercise 1.8 complete. #1