create init values for shared methods functional style
create stackMethods
create stackMethod push
create stackMethod pop
create stackMethod size