Solution for 5 gon, even though a bit elaborate