added assignment 6, minus type elements