﻿function dictionary() {

    this.add = dictionaryAdd;
    this.lookup = dictionaryLookup;
    this.remove = dictionaryRemove;

}

function dictionaryAdd() {
    for (i = 0; i < dictionaryAdd.arguments.length; i += 2) {
        this[dictionaryAdd.arguments[i]] = dictionaryAdd.arguments[i + 1];
    }
}

function dictionaryLookup(key) {
    return (this[key]);
}

function dictionaryRemove() {
    for (c = 0; c < dictionaryRemove.arguments.length; c++) {
        this[dictionaryRemove.arguments[c]] = null;
    }
}


