Final submit

Functionality not completed:
still buggy.