in this block: remove not used puts, extract dname generation in separate method, use for hash new syntax, remove variable dname and directly assign to disk[:name],