ex29 working on Linux