added shell() function to shell