sample programs for learning purpose