updated rect.cpp/hpp and worked on hw-10