add readAWord function