needed line breaks
average successful

built average function and tested