finish example on using classes