lab 6 part 10  done without cube