Create spark core code (testing)