Sage Homework 3