Updated Full Example with localization technique