Implement 29-09-14/6.cpp