Adding Rectangle and Number of Ones