solve IntentAssignment2