Added Plotsin function