Added MagicTrick in Scala