Concerned that Gary's studies will be affected by his interest in girls, Ted issues a 'no sheilas' decree.