Event class

coded event class and new way to get resources.
also created a system to identify parts of the system.