Solutions of lection#2

Solutions implementations