Add Adapter Template Code