added and finished logger. all tests passing