Parametric script for a gabled roof building

Hello everyone,
Does anyone have a simple grasshopper script for a parametric gabled roof building? I am mainly working with a rectangular animal stable. I want to create a script where you can change different building properties, and use the model for daylight simulations. I would like to look at an example, so that I can get a clear idea of how the script should be.

Thanks in advance!

Hi -
FWIW, there are plug-ins that do that:

-wim