functions assignment

eighteenth commit
functions assignment

nineteenth commit
functions assignment

twentieth commit