Replaced starter code for Ex1