Submitting hw #4/#5 of ML