basic funtions

basic tests done