added __init__
renamed dictionary to dict