Initial stack implementaion