class BitSet {

    public boolean get(int position) {
        if (position < 0 || position >= this.size) {
            throw new IndexOutOfBoundsException(String.format("Index: %s, Size: %s", position, this.size));
        }

        int offset = position / 8;
        int bitoffset = position % 8;

        return (this.bytes[offset] & 0xff & (1 << bitoffset)) != 0;
    }

    public  BitSet(int size);

}