Added a function to Wacky

Made the calculation function to Wacky. and set a return