https://dev.to/simongreennet/triangles-and-rectangles-45p8