mytext class implemented