Added simple inheritance file and implemented inheritance