creating task obj