Working dictionary solution