organizing by type

plan: answer all problems in javascript, python, ruby, and perl