using Locality class