exercise5: first version of task1a