Alternate way to do ex1 of assignment 2