added baseclass
separtated models into their own files.