ratings code compiles, ready for test