refactoring: extract bidsystem as isolated data class
refactoring: move open/close functionality to application class