template name from Type to Class. Added stream() function