finish the pipe filter exercise