added writeinitmehod method (without attriutes) #121