Added type printing functionality