changed constructor to public