ECEM119 assignment 2 problem 4

no such method: tip