Personal/thomas/mining model

cc @asvirsky.