implemented pop
(both still need work)