Refactored Intents Assignment.

Added source code and JUnit test cases for Week 3 Permissions
Assignment.