Update functions.php

added functions for schedule