example showing how to use spectrum functions
added spectrum example: still some work needed on this example