Tape class reimplementation