added diagonals to class