****************** Modelling the heap ****************** .. todo:: Write