First half of homework that was done in lab