Created code to print types, added a test