added equals method to Sequence class