refactored some code in App.java and chordProgression.java