wrote code to pass third round of tests.