fixed warnings in Assignment 3 project