Added perspective class

Added to class to handle perspective