run out of time ; using a simple average algorithm