updated program examples