finish the implementation of #7 by implementing an element called 'hash'
fix docstring