addd solutions to programming asssignment 3