Made shapes mutable in preparation for pooling them