Create methods for getting state and request from the user.