add hw4, except data directory for replicaSet