added sandbox pseudocode