Use the extrude command for this .
start with two squares above each other then duplicate it for a 3th time and then reshape it as the profile you need duplicate this a couple of times and so on then extrude them
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.