simple struct assignment and access working