Sample of code writing using struct framework