Two-stage fragmentation in a rotating protostellar cloud