Trying to implement resource containers