added the functionality for pos tagging