updated with examples
updated with examples
handling null/undefined data