Continuing development of castaway class
It only remains to encode the function dealWith and take