Custom page with WP Header showing Page not found title

ok so I figured this out. Here are the steps I took

Create a php file in your themes directory

wordpress Dir -> Themes -> YOUR THEME NAME -> newfile.php

In this file add the following:

<?php /* Template Name: theme-child */ ?>

<?php get_header(); ?>

// your custom script here 

<?php get_footer(); ?>
**Then go to Pages -> New Page

Within the new page on the sidebar select template and look for your template name that you defined in the top of the custom file.

Name and publish your page. Viola you should have a live page with your custom code in it.