I think I managed to implement the push method but I have to test it for now I hope it works, sorry for the ugly formatting but eclipse turned all my comments into this :( I will try and fix it