complete code w/minimal functionality