have a look at inheritance

resolves #3