Exercise 4 from software development lecture of technical university dresden.