code I did from the phpeople challenge