creating a struct on the stack