Implemented bounding boxes (closes #49)