added all the default class methods, oblig1, dats2300

Signed-off-by: Alexander Skjolden <alex@plastboks.net>
added sorting and return last value of array, oblig 1, dats2300

Signed-off-by: Alexander Skjolden <alex@plastboks.net>