finished the first problem