added function puzzle ex21