read first problem wrong, solved average problem