fixed function to use cube where appropriate
finished exercises 1.10 and 1.11