Carnage student escapes prison sentence