solve first problem