This assumes that this class/rect exists but it may not.