implement the constructor for four task class