wrote example to demonstrate that replication works