fix lab04 q11 into one-liner