Refactor code to be cleaner adding resize class
changed hash map name
added a serializer