Define our own masked class