introducing constructor, usingLocale, and getLocale