Our rescue puppy, about one year old, was not housebroken.  Our vet suggested a large crate.  Our dog is only 14 lbs. and we purchased a medium-size crate.  We leave the door open all the time, unless we are leaving for several hours.  He drags all his toys in to chew there.  We have never had a crate before but this one has proven to be quite useful.  I have to stop thinking of it as a cage!