Added example for printing nested types.