improved coding examples