Completed code that builds Request structs