defining models, and code to prepopulate the captains