implemented stub for Text and Word class