added finished ex2. code written in sublime text but edited for prining in word