## This is a **simulation** of an abstract class provided at user request. ##
class Book
    attr_accessor :title
	attr_accessor :author
	
	def initialize(title, author)
		raise 'You cannot instantiate an abstract class.'
	end
	
	def display
		raise 'You must override this method in your implementing class.'
	end
end

class MyBook < Book
    attr_accessor :price
    
    def initialize(title, author, price)
        #super(title, author)
        @title = title
        @author = author
        @price = price
    end
    
    def display
       print "Title: ", title
       print "Author: ", author
        print "Price: ", price
    end
    #   Class Constructor
    #   
    #   Parameters:
    #   title - The book's title.
    #   author - The book's author.
    #   price - The book's price.
    #
    # Write your constructor here
    
    
    #   Function Name: display
    #   Print the title, author, and price in the specified format.
    #
    # Write your function here

end
title = gets
author = gets
price = gets

new_novel = MyBook.new(title, author, price)
new_novel.display
