models: implement prize(query) and Class model