copied code from project for portfolio