add method checking the type of a task
Merge branch 'master' of https://github.com/cs2103aug2014-w15-2j/main