moved over problems 1-8 from other repository