Creating Bounding Box Functionality