My solutions to assignment