Foundations of Informatics assignment 2