one of the first few exercieses in the CS61AS course