Magpie 4 assignment

Added methods. Completed assignments 3 and 4