wp8: updated example code