Making Marker Function

code.