For example, “Life is a box of chocolates.” An analogy is saying something is like something else to make some sort of explanatory point. For example, “Life is like a box of chocolates—you never know what you're gonna get.” You can use metaphors and similes when creating an analogy.
The train stopped just a few inches before the handcar. The driver got out and harnessed the handcar to the engine and slowly started moving towards the station. The boys felt relaxed.