adding a simple hash library