added solution to assignment4.htm as described in issue comment