Creating router class