working use literal dictionary and array.