added getters setters and equals method to card