Myself programming exercise