added task 7 from chapter 7

please do comment as we do not know if this task is builded correctly.