draft 1

Added first darft of some functions