this is example 4. my syntax was off, so it took a bit longer to finish