Set templates namespace in header and introduce bet's parial