Implementation of inverse model (base)