Implement sampleModel: + Bugfix