Redesigned resources to oop and created a manager for each type of resource.