Finished function #8

Completed function 8, counting time & verified accuracy.