stack's empty method works now
stable