algorithm implemented. Though NullPointerException is thrown, as no network is read