Refactored implementation of ChordMapper to use inheritance. Looks simpler and works for now.