Fixed the hw2 in order to manully create bounding rects