Logging for hw 2