Re-add AverageFrame.java

see 4f18928afe500349b35b257d2c4adb85d98e222f