An ASP-based system for preference handling and planning