add problem 7 to php, python, and ruby