Added the text adding function implementation. Fixed the spec