Smoking pipe is a tool for smoking tobacco , it has different shapes and sizes, and the reason for using the pipe is that it filters and filters smoke from nicotine and tar materials , and works to cool the smoke before it reaches the mouth .