ex11 : improved w command