added constructor to header