Adding method to retrieve dimensions and implementing header