adding activity method to Material

Looks like too many white spaces, and potentially redundant curly braces