lecture18: free and movable end points