logging example part 1