Making state an object
Making state an object