Implement QSMSQueue and QSMS classes