Coded the stent fitting problem, still needs a check