Reference programming