wrote functions that pass all tests, and wrote a test for describe_result