Added a function for dotted lines

Anyone can put something in right?  Or were we supposed to do something else first?