solve IntentAssignment1