Week2 Assignment - Modified main