hw submission

functions defined