Added magic ball class.