add thread_last functionality
Merge pull request #1 from karansag/thread-style-piping

add thread_last functionality