Initial commit of "midterm" folder containing the assignment

doesn't fulfil all the requirements for the midterm assignment yet....
@slead passing self to this function is redundant