examples: Modifying examples to work with the new codebase
diff --git a/examples/custom-apps/hijacker.cpp b/examples/custom-apps/hijacker.cpp
index 70e2d9e..eedd08f 100644
--- a/examples/custom-apps/hijacker.cpp
+++ b/examples/custom-apps/hijacker.cpp
@@ -17,11 +17,12 @@
  *
  * Author: Alexander Afanasyev <alexander.afanasyev@ucla.edu>
  */
-
 // hijacker.cc
 
 #include "hijacker.hpp"
 
+#include "ns3/ndnSIM/helper/ndn-fib-helper.hpp"
+
 NS_LOG_COMPONENT_DEFINE("Hijacker");
 
 namespace ns3 {
@@ -42,12 +43,12 @@
 }
 
 void
-Hijacker::OnInterest(Ptr<const ndn::Interest> interest)
+Hijacker::OnInterest(shared_ptr<const ndn::Interest> interest)
 {
   ndn::App::OnInterest(interest); // forward call to perform app-level tracing
   // do nothing else (hijack interest)
 
-  NS_LOG_DEBUG("Do nothing for incoming interest for" << interest->GetName());
+  NS_LOG_DEBUG("Do nothing for incoming interest for" << interest->getName());
 }
 
 void
@@ -56,9 +57,7 @@
   App::StartApplication();
 
   // equivalent to setting interest filter for "/" prefix
-  Ptr<ndn::Fib> fib = GetNode()->GetObject<ndn::Fib>();
-  Ptr<ndn::fib::Entry> fibEntry = fib->Add(ndn::Name("/"), m_face, 0);
-  fibEntry->UpdateStatus(m_face, ndn::fib::FaceMetric::NDN_FIB_GREEN);
+  ndn::FibHelper::AddRoute(GetNode(), "/", m_face, 0);
 }
 
 void