project4: implement BassGenerator and ChordGenerator