Defined a thread
Added setters and getters
Added importance to category