Modify syntax for assigning value to struct