Created getters and setters for Task class properties.