final version of assg hw3.3