altervative solution after evaluating Course Project 1