Wrote isEmpty and Stack(create a Stack from List) methods