sample added
started adding some functions