Magpie Activity 2

Added the necessary changes.