This drawing describes how it work.