Init: Solution to exercise 5-2