Stack class & tests implemented.