Adding Stack class and tests