First two solutions for Exercise 04