ErlaNg applIed to a Goal-Manager for Autonomous-systems