2nd coding assignment