Adding functions and example JSON input/output