Added ReverseByWord class