both sample problems solved correctly