First Prog from Algo book