added basic functions, beginning to program them