modified subshell, implemented sequence and while