Added :type field to Resources, created classes for types of resources