Wacky function created

variables and function created and tested