Hey py2771919009, thank you so much for bringing this issue to our attention. While your code is correct, the instruction stated to write the average calculation on a new line under the declaration of the averageVal variable. We have however updated the test to include your solution and others that are similar to it. Thank you again for bringing this to our attention.