changed boolean fields to public final and changed constructor to accept
new boolean fields