Learning by replicating