In this paper we introduce and investigate a class of algebras which is related to several classes of algebras of interest such as $BCH/BCI/BCK$-algebras and which seems to have rather nice properties without being excessively complicated otherwise. Furthermore, a digraph on algebras defined below demonstrates a rather interesting connection between $B$-algebras and groups.