simple assignment example works from commandline and xcode