added another coding snippet