added initial code snippet