mathlog hw3. done