added exercise 5, todo: classes