fixed convert, added contains function
dictionary implementation