add class to compute the the screen rectangle