Add task tick function
Merge branch 'dev-hw3' of github.com:3Legs/w4118 into dev-hw3