Implemented typename functionality