2nd exercise in mcomputing