class Task written to pass tests