applied mods from lesson04, fixed param passing. Works!