took me half day to finish this | ScratchStats