Friedmann-like collapsing model of a radiating sphere with heat flow