broke date_checker out into multiple pieces and created main function