first problem solution