add decorator

extend the scoreline function through decorator pattern;
add the duration detection when releasing the piano key