Completed second problem section