Stack exercise for data structures