Solve exercises for first chapter

Solutions for first chapter exercises