Completed assignment for objects using the Math related methods.