add files homework 6.5 and fix a bug in script to create a replica set