Applied SLAP for State
Removed Magic Numbers and removed _taskType attribute in Task