completed B command and tested it