added hash array
added hash method
added header
added counter
finished
my own version