Internal functions exercise ver 1