Adding Namespace support

Examples fixed with Namespace support