some coding examples from public