Today, I solved all my errors of yesterday and implemented the polyline entity through my code successfully. Here‘s the commit.
But, I still have to work upon the text part of it. As deciding the lowest point in a polyline figure is somewhat hard but I know I will find it somehow. Moreover, I also have to mention about polyline in the readme file.