Add shake method to the apple tree