generic model corrected

simulation initial implementation (incomplete)