implemented hashcode method for tasks