frame for text class