Looks like a step in the right direction, a couple bits are missing:
bool
Note you have more DT entries than array indexes. It will generate exceeds bounds errors unless handled.