added functions.php
created load_posts function