These are homework we did in the class