Contracting protostar