Successful working with hashmaps