Exercise 1 of Day boost function not struct