Resetting lines and adding word class selection