Swift implementation of learning group session 2.