Function coming back undefined?

@fretburner Thank you for your help. I solved it by taking the function out of the constructor and then
stating Album.prototype.purchase = function(){
With my block of code
};
That seemed to work. Should I just put the function back in my constructor or keep it out. Which is cleaner?