stack and queue working
changed main