AdvCompMidterm Solution by IndyZa