add example code for wp8