Added source code for WP8