ex05 sample solution