Now that we have explained the basics of creating, moving and turning objects you can try it yourself. There are many ways to create the same object but in general the fewer statements you need the better.
Build a gate from basic objects. Remember that you have to turn back to place the second wedge.
Start with the blue and red objects and add the cylinder at the end. You have to turn and move the axis before adding the cylinder.