More elaborate tasks in Assignment 4