add Lrnpyhard exercise 4 init code