add clear method for My.prototype