second implementation of project 2