add two function to print stars line and dotted line