added a really basic template function
updated the getCountryCode method with a cache expiration of 7 days