logic2 problem. for some reason, codingbat doesn't accept anything with self. But this works just fine