Solution for 4th assignment.