genesis block generation code