problem from beauty of programming