Added subgoals property to Goal class