Solved exercise 23 and 24 : implementing zip function