Add first implementation of cheapness calculation and remaining functional elements to the design.