Barebones stack implentation: reads integers