My code before git era (for me). Hash cannot be calculated correctly with in a function. Also it may be good idea to calculate each time cube roots etc because it may help to adjust these values in future.