Moved some code to the Cuboid class so it is less repetitive. Time to eat some food.