Assignment 2 basic in-window logging