HW2 and history code going through tutorial