Adding my initial example scripts - mostly taken from the forums but modified as needed.