added constructor and toString method