Assignment 5 for CSE310 class