Just getting started. Wrote test cases for valid_url().
Implemented valid_url(), which passes all tests.