adding code for genesis block creation 2