Self-replicating system