Write required methods #3 and #4, must be tested