renamed Main to StackInterface