Second programming assignment