updated Bin.h/cpp class so that the vector is a member