simple sack implementation