Boil all of the ingredients (except the vanilla) over a slow fire until dissolved, and stir occasionally as it burns easily. Test by dropping little in water. If it hardens quickly, remove at once from the fire. Add vanilla and pour into buttered pans.