inf2c-se homework 3