simple program from kLabU assignment