added printDot Method