starting hw 2 solutions. trying to figure out a good way to latex this...