<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def coords_by_dimension(self, dimensions=3):
 """ Returns fitted coordinates in specified number of dimensions, and the amount of variance explained) """


        coords_matrix = self.vecs[:, :dimensions]
        varexp = self.cve[dimensions - 1]
        return coords_matrix, varexp