section 2: first problem completed.