code and test some models