Implemented realizeGoal()