implemented all functions for Lab3A
removed old examples