refactored BDD vector app