First homework for the course Distributed Artificial Intelligence and Intelligent Agents (KTH)