Added a final constructor to MyDebug and made it final.