implementged Binary struct