mab: adding solutions to homework 3