Exercise 5 from software development lecture of technical university dresden.