Refactored using NoteName enum instead of chars