Wrote the RedObject stuff and the basic test.