lesson on extending classes