Lab 3: intent assignment is implemented