Magpie Activity 3

Copied over the changes I made to Magpie into Magpie 3, then changed
them to use the findKeyword method instead of statement.indexOf.