Added abstract class 'Magic' and utilized it across classes in package