Wrote code for ladder and swing .. not tested