Proper printing of the nested class names