I modified this hat from moroccan hexagon motif. For top of the hat, I made it pentagon (according to the square of the side) and wider. For the side, I made it become square from octagon