Yielding body to container class