Changed constructor to public from private