Overloading operator [] instead of method get
Adjusting to operator overloading in Resourcemanager class