Session 04 homework and labs

could use slice rather than loop here to.