my stack realisation for fun