rewite MyInteger code