Programming the glasses