edited anon function - totaled prompted inputs - test pending