Make Resource use a dict instead of inherit it