Fix printSequence() method. Fix getElement() method.