add AddingSampledKeyframe without old code.
refactoring to move child class to parent class