General utilities
Core model code with main-method example