added constructor to store class info