Updated Triangle! Added equals and hashCode methods, they will be
implemented later!