Implemented and tested the bind method