Add ->path method to obtain expression