Changed constructor to public