added class and methods for 01 exercise