Programming assignment solved